<?php
// +----------------------------------------------------------------------
// | title: 武将升星日志
// +----------------------------------------------------------------------
// | Author: TZ.Leong
// +----------------------------------------------------------------------
// | Date: 2019/11/18 14:41
// +----------------------------------------------------------------------
$heroDataConfArr =getDiffConfig('hero_data'); 
$heroArr=["-999"=>"修士名称"];
foreach($heroDataConfArr as $key =>$value){
    $heroArr[$key] = $value["name"];
}
return array(
    1 => array(
        "title" => "武将升星日志",
        'table_name' => array("function" => "heroDataStar"),
        "where" => array(
            'role_id' => array('name' => '玩家ID','type' => 'text','value' => ''),
            'name' => array('name' => '角色名','type' => 'text','value' => ''),
            'base_id' => array('name' => '修士名称',"type" => "select","values" => $heroArr,"value" => -999),
             'time' => array('name' => '时间', 'type' => 'date_time', 'values' => array('start_date' => date('Y-m-d 00:00:00'), 'end_date' => date('Y-m-d 23:59:59'))),
        ),
        "where_merge" => [],
        "export" => true,
        'show' => array(
            'role_id' => '玩家ID',
            'name' => '角色名',
//            'corps' => ['升星武将兵种', 'function' => 'getTypeName', 'param' => ['config' => 'corps_conf', 'diff_config' => 'hero', 'field' => 'hero_id', 'diff_config_field' => 'corps']],
            // 'star' => ['升星武将星级', 'function' => 'getTypeName', 'param' => ['config' => 'corps_conf', 'diff_config' => 'hero', 'field' => 'hero_id', 'diff_config_field' => 'star_limit']],
            'base_id' => array("升星修士名称","function" => "itemName","param" => ['field' => 'base_id', 'config' => 'hero_data', 'config_field' => 'name']),
            'hero_id' => "修士唯一id",
            'loss_hero_ids' => ['消耗武将列表',"function"=>"formatData","param"=> ['field'=>"loss_hero_ids"]],
            'old_star' => "当前武将升星前",
            'new_star' => '升级后武将星级',
            'time' => array("时间","function" => "changeDate"),
        )
    ),
);